const { method } = require('./method')
const { get,post } = method

//登录相关接口
export const wechatLogin= data=> post('apiclient/actionLogin', data )  //微信登录(获取openid)
export const phoneLogin= data=> post('apiclient/phoneLogin', data )  //手机号登录
export const sendCode= data=> post('apiclient/sendCode', data )  //发送验证码
export const logout= data=> get(`login/wechatLogout/${data.userid}`, data )  //退出登录